package org.jeecg.basic.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 产品包装配置
 * @Author: LiCY
 * @Date:   2023-08-06
 * @Version: V1.0
 */
@Data
@TableName("mes_lot_cfg")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mes_lot_cfg对象", description="产品包装配置")
public class MesLotCfg implements Serializable {
    private static final long serialVersionUID = 1L;

	/**产线或产线组*/
	@Excel(name = "产线或产线组", width = 15, dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
	@Dict(dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
    @ApiModelProperty(value = "产线或产线组")
    @MppMultiId
    @TableField(value = "line")
    private String line;
	/**产品或产品组*/
	@Excel(name = "产品或产品组", width = 15)
    @ApiModelProperty(value = "产品或产品组")
    @MppMultiId
    @TableField(value = "partno")
    private String partno;
	/**批次规格名称*/
	@Excel(name = "批次规格名称", width = 15)
    @ApiModelProperty(value = "批次规格名称")
    @MppMultiId
    @TableField(value = "name")
    private String name;
	/**小批次数量*/
	@Excel(name = "小批次数量", width = 15)
    @ApiModelProperty(value = "小批次数量")
    private BigDecimal qty;
	/**默认批次规格*/
	@Excel(name = "默认批次规格", width = 15)
    @ApiModelProperty(value = "默认批次规格")
    private String isDefault;
	/**批次序列号规格*/
	@Excel(name = "批次序列号规格", width = 15)
    @ApiModelProperty(value = "批次序列号规格")
    private String lotFmt;
	/**批次标签模板文件路径*/
	@Excel(name = "批次标签模板文件路径", width = 15)
    @ApiModelProperty(value = "批次标签模板文件路径")
    private String labelPath;
	/**小批次外壳重量*/
	@Excel(name = "小批次外壳重量", width = 15)
    @ApiModelProperty(value = "小批次外壳重量")
    private BigDecimal weight;
    @Excel(name = "小批次重量浮动", width = 15)
    @ApiModelProperty(value = "小批次重量浮动")
    private BigDecimal weightLimit;

	/**大批次数量*/
	@Excel(name = "大批次数量", width = 15)
    @ApiModelProperty(value = "大批次数量")
    private BigDecimal bqty;
	/**大批次序列号规格*/
	@Excel(name = "大批次序列号规格", width = 15)
    @ApiModelProperty(value = "大批次序列号规格")
    private String blotFmt;
	/**大批次标签模板文件路径*/
	@Excel(name = "大批次标签模板文件路径", width = 15)
    @ApiModelProperty(value = "大批次标签模板文件路径")
    private String blabelPath;
	/**大批次外壳重量*/
	@Excel(name = "大批次外壳重量", width = 15)
    @ApiModelProperty(value = "大批次外壳重量")
    private BigDecimal bweight;

    @Excel(name = "大批次重量浮动", width = 15)
    @ApiModelProperty(value = "大批次重量浮动")
    private BigDecimal bweightLimit;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date ctime;
}
